<html>
    <head></head>
    <body>       
        <?php
        require_once("conn.php");

        $packid = $_GET['id'];

        if (isset($packid)) {
            $sql = "SELECT * FROM t_product WHERE packid = " . $packid;
            $db = new DBC();
            $data = $db->fetchData($sql);
            ?> 
            <table width="800" border="1" cellpadding="1" cellspacing="1" bordercolor="#993333">
                <tr><td>Name</td><td>URL</td></tr>
                <?php
                foreach ($data as $product) {
                    ?>
                    <tr><td><?php echo $product['name']; ?></td><td><?php echo $product['url']; ?></td></tr>
                    <?php
                }
            }
            ?>
        </table>

    </body>
</html>